package ThirdQuestion;

/**
 * @author cyt
 * @date 2020/6/9
 */
public class MobileCard {
    private CardType cardType;

    private int cardNum;

    private String username;

    private String password;

    private int accountBalance;

    public CardType getCardType() {
        return cardType;
    }

    public void setCardType(CardType cardType) {
        this.cardType = cardType;
    }

    public int getCardNum() {
        return cardNum;
    }

    public void setCardNum(int cardNum) {
        this.cardNum = cardNum;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getAccountBalance() {
        return accountBalance;
    }

    public void setAccountBalance(int accountBalance) {
        this.accountBalance = accountBalance;
    }

    public int getCallTime() {
        return callTime;
    }

    public void setCallTime(int callTime) {
        this.callTime = callTime;
    }

    public int getNetFlow() {
        return netFlow;
    }

    public void setNetFlow(int netFlow) {
        this.netFlow = netFlow;
    }

    private int callTime;

    private int netFlow;

    public MobileCard(CardType cardType, int cardNum, String username, String password, int accountBalance, int callTime, int netFlow) {
        this.cardType = cardType;
        this.cardNum = cardNum;
        this.username = username;
        this.password = password;
        this.accountBalance = accountBalance;
        this.callTime = callTime;
        this.netFlow = netFlow;
    }

    public void show(){
        System.out.println("卡号为"+getCardNum()+"的用户"+getUsername()+"的余额为"+getAccountBalance()+"元");
    }
}
